<?php /* Smarty version 2.6.26, created on 2018-07-20 02:35:10
         compiled from E:%5CWWW%5C40.125.208.171%5Cvweb/admin%5Ctemplates/article/category.html */ ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "index/header.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?> 
<div class="nav"><span>分类列表</span></div>
<div class="filter">
	<a href="javascript:;" onClick="edit_cats('分类添加','?m=article&a=category_edit');" class="add">分类添加</a> 
</div>
<div class="main">
	<table class="ltable">
	  	<thead>
		  	<tr> 
				<th width="300">分类</th> 
				<th width="80">排序</th>
				<th width="80">状态</th>
				<th width="120">操作</th>
				<th width="120">时间</th>
				<th></th> 
		  	</tr>
	  	</thead> 
		<?php if ($this->_tpl_vars['data']): ?> 
		<tbody>
			<?php $_from = $this->_tpl_vars['data']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['i']):
?>
				<tr>  
					<td><?php echo $this->_tpl_vars['i']['name']; ?>
</td> 
					<td><?php echo $this->_tpl_vars['i']['px']; ?>
</td>
					<td><?php if ($this->_tpl_vars['i']['status'] == '1'): ?>正常<?php else: ?><span style="color:#FF0000;">关闭</span><?php endif; ?></td>
					<td>
						<a href="javascript:;" onClick="edit_cats('修改分类','?m=article&a=category_edit&cid=<?php echo $this->_tpl_vars['i']['cid']; ?>
');" class="edit">修改</a>	
						<a href="javascript:;" data-id="<?php echo $this->_tpl_vars['i']['cid']; ?>
" class="del">删除</a>
					</td>
					<td><?php echo $this->_tpl_vars['i']['addtime']; ?>
</td>
					<td></td>
				</tr>
			<?php endforeach; endif; unset($_from); ?>
		</tbody> 
		<?php else: ?>
			<?php if ($this->_tpl_vars['data']['page']): ?><tr><td colspan="6"><div class="nomsg">还没有数据，赶快添加吧！</div></td></tr><?php endif; ?>
		<?php endif; ?> 
	</table> 
</div>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "index/footer.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?> 
<script type="text/javascript">
_delete('?m=article&a=category_del');
function edit_cats(name,url){
	parent.dialog(name, url, 500, 250); 
} 
</script>